Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: Inline templates, correct type errors that revealed. #6936

Merged
merged 1 commit into from Jul 20, 2022

Conversation

benlesh
Copy link
Member

@benlesh benlesh commented Apr 19, 2022

This change simply uses inline template instead of templateUrl. I've always hated templateUrl haha.

Anyhow, doing this reveals more type errors and gives better feedback in VS Code (if you're using Angular Language Service).

@benlesh benlesh added 7.x Issues and PRs for version 6.x 8.x Issues and PRs for version 8.x labels Apr 19, 2022
Copy link
Member

@jakovljevic-mladen jakovljevic-mladen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. One check can be removed since it was moved to another place.

[path]="tab.path"
[region]="tab.region"
[header]="tab.header"
>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh Prettier 🙄

@@ -45,14 +71,16 @@ export class SearchResultsComponent implements OnChanges {
}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since you added check in ngOnChanges, this part: if (!search) { return []; } can be removed.

@benlesh benlesh merged commit 9a85e01 into ReactiveX:master Jul 20, 2022
@benlesh benlesh deleted the docs_inline-templates-fix-types branch July 20, 2022 21:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
7.x Issues and PRs for version 6.x 8.x Issues and PRs for version 8.x
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants